<?php
class helper_autolist extends Controller_Abstract
{
	 function lists()
	{
		//获取搜索参数
		$this->get_param();
		//初始化分页信息
		$this->_format_page_info();
		//关联表
		//$this->union_table = $union_table;
		$dis_param = new helper_disposeparam($this->param);
		$obj = call_user_func_array(array($this->union_table,'find'), $dis_param->getsql());
		$item = $obj->limitPage($this->curr_page,$this->page_size)
		->order(' '.$this->orderkey.' '.$this->ordertype)
		->fetchPagination($this->pagination)
		->getall();
		$this->_view['item'] = $item;
		$this->_view['pagination'] = $this->pagination;	
	}
}


?>